package com.you.atlas.biz.place.service.impl;

import java.util.List;

import com.you.atlas.biz.place.service.PhotoQueryService;
import com.you.place.dal.dao.PhotoDAO;
import com.you.place.dal.dao.dataobject.PhotoDO;

public class PhotoQueryServiceImpl implements PhotoQueryService {

    private PhotoDAO photoDAO;

    public void setPhotoDAO(PhotoDAO photoDAO) {
        this.photoDAO = photoDAO;
    }

    @Override
    public List<PhotoDO> queryPhotoByAlbumId(Long albumId) {
        return photoDAO.findByAlbumId(albumId);
    }

}
